//
//  SRSportDetailTableViewCell.m
//  SportRing
//
//  Created by elwin on 10/29/14.
//  Copyright (c) 2014 HotOne. All rights reserved.
//

#import "SRSportDetailTableViewCell.h"
#import "NSDate+Additionals.h"

@implementation SRSportDetailTableViewCellModel



@end

@interface SRSportDetailTableViewCell()

@property(nonatomic, weak)IBOutlet UILabel *sportDetailTimeLabel;
@property(nonatomic, weak)IBOutlet UILabel *sportDetailTitleLabel;
@property(nonatomic, weak)IBOutlet UILabel *sportDetailContentLabel;

@end

@implementation SRSportDetailTableViewCell

- (void)awakeFromNib
{
    [self setBackgroundColor:[UIColor colorWithRed:246.0/255.0 green:245.0/255.0 blue:240.0/255.0 alpha:1.0]];
    
    self.sportDetailTitleLabel.hidden = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

- (void)setSRSportDetailTableViewCellDataWithSRSportDetailTableViewCellModel:(SRSportDetailTableViewCellModel *)model;
{
    self.sportDetailTimeLabel.text = [SRHelper timeFromDaySection:model.section];
    self.sportDetailTitleLabel.text = @"";
    self.sportDetailContentLabel.text = [NSString stringWithFormat:@"%d步，%.1f公里，%d卡路里",model.steps, model.distance,(int)model.calorie];
    
}

@end
